import { EnumStatus } from "../../../../../constants";
import { EnumBusinessType } from '../constants';
import {createElement} from "react";
import {Input, Select} from "antd";

export const filterItems = [
    {
        title: "模块",
        name: "title",
        gridSpan: 1,
        component: createElement(Input),
    },
    {
        title: "人员",
        name: "operName",
        gridSpan: 1,
        component: createElement(Input),
    },
    {
        title: "类型",
        name: "businessType",
        gridSpan: 1,
        component: createElement(Select, {
            children: EnumBusinessType.map(({label, value}) => createElement(Select.Option, {key: value, value, children:label}))
        }),
    },
    {
        title: "状态",
        name: "status",
        gridSpan: 1,
        component: createElement(Select, {style:{width: "100%"}, allowClear: true}, EnumStatus.map(({label,value}) => createElement(
            Select.Option,
            { key: value, value,  children: label}
        )))
    }
];
